package com.jxl.springboot.game.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
 * 游戏类型
 *
 * @author 江雪林
 * @create 2021-03-29
 */
public class GameType {
    private Integer id;//主键ID
    private String categoryCode;//分类编码
    private String categoryName;//分类名称
    private Integer parentId;//父级节点id
    private Integer creater;//创建者（来源于backend_user用户表的用户id）
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTm;//创建时间
    private String modifyor;//更新者（来源于backend_user用户表的用户id）
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date modifyTm;//最新更新时间
    private List<GameType> subsTypes;

    public GameType() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getCreater() {
        return creater;
    }

    public void setCreater(Integer creater) {
        this.creater = creater;
    }

    public Date getCreateTm() {
        return createTm;
    }

    public void setCreateTm(Date createTm) {
        this.createTm = createTm;
    }

    public String getModifyor() {
        return modifyor;
    }

    public void setModifyor(String modifyor) {
        this.modifyor = modifyor;
    }

    public Date getModifyTm() {
        return modifyTm;
    }

    public void setModifyTm(Date modifyTm) {
        this.modifyTm = modifyTm;
    }

    public List<GameType> getSubsTypes() {
        return subsTypes;
    }

    public void setSubsTypes(List<GameType> subsTypes) {
        this.subsTypes = subsTypes;
    }

    @Override
    public String toString() {
        return "GameType{" +
                "id=" + id +
                ", categoryCode='" + categoryCode + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", parentId=" + parentId +
                ", creater=" + creater +
                ", createTm=" + createTm +
                ", modifyor='" + modifyor + '\'' +
                ", modifyTm=" + modifyTm +
                ", subsTypes=" + subsTypes +
                '}';
    }
}
